import { ref } from 'vue'
import { defineStore } from 'pinia'


export const openTagsStore = defineStore('tags', () => {

  // openTags作为标签页组件的初始数据
  let openTags = ref([{
    fullPath: '/index/home',
        meta: { title: 'home' }
  }])

  function toTags(v: any) {    
    openTags.value = v
  }

  return { openTags, toTags }
}, {
  // 开启持久化存储
  persist: {
    enabled: true
  }
})